<div class="container-fluid">
  <div class="error-container">
    <div class="error-container__content">
      <% unless @error.nil? %>
        <div class="alert alert-danger alert-dismissible" role="alert">
          <%= @error %>
          <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        </div>
      <% end %>
    </div>
  </div>
  <div class="row">
    <div class="col-lg-6">
      <h2>Edit query</h2>
      <form class="form" action="/queries/<%= @query.id %>" method="post">
        <input type="hidden" name="_method" value="put" />
        <%= erb :'queries/_form' %>
        <div class="form-group">
          <button type="submit" class="btn btn-primary">Save</button>
        </div>
      </form>
    </div>
  </div>
</div>
